package com.ruoyi.domain;



import cn.afterturn.easypoi.excel.ExcelImportUtil;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.ruoyi.util.BaseBean;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 银行流水模板1对象 bank_log_one
 * 
 * @author zhanggq
 * @date 2020-02-28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BankLogOne extends BaseBean
{
    private static final long serialVersionUID = 1L;


    /** 编号 */
   // @Excel(type = Excel.Type.IMPORT)
    private Integer id;

    /** 交易时间 */
    @Excel(name = "交易时间",importFormat = "yyyy-MM-dd HH:mm:ss" )
    private Date dealTime;

    /** 收入 */
    @Excel(name = "收入")
    private String inCome;

    /** 支出 */
    @Excel(name = "支出")
    private String expend;

    /** 币种 */
    @Excel(name = "币种")
    private String currency;

    /** 对方账号 */
    @Excel(name = "对方账号")
    private String oppositeAccount;

    /** 对方用户名 */
    @Excel(name = "对方户名")
    private String oppositeUserName;

    /** 余额 */
    @Excel(name = "余额")
    private String balance;

    /** 摘要 */
    @Excel(name = "摘要")
    private String digest;

    /** 凭证类型 */
    @Excel(name = "凭证类型")
    private Integer voucherType;

    /** 凭证号 */
    @Excel(name = "凭证号")
    private String voucherNumber;

    @Excel(name= "备注")
    private String remark;

    /** 核心流水号 */
    @Excel(name = "核心流水号")
    private String serialNumber;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("dealTime", getDealTime())
            .append("inCome", getInCome())
            .append("expend", getExpend())
            .append("currency", getCurrency())
            .append("oppositeAccount", getOppositeAccount())
            .append("oppositeUserName", getOppositeUserName())
            .append("balance", getBalance())
            .append("digest", getDigest())
            .append("voucherType", getVoucherType())
            .append("voucherNumber", getVoucherNumber())
            .append("remark", getRemark())
            .append("serialNumber", getSerialNumber())
            .toString();
    }
}